<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
    <meta name="generator" content="Hugo 0.88.1">
    <title>Signin Template · Bootstrap v5.1</title>

    <link th:href="@{/assets/dist/css/bootstrap.min.css}" rel="stylesheet">

    <style>
        body{
            background: url(http://www.obzhi.com/wp-content/uploads/2022/04/genggui.png);
            background-size: 100% 100%;
            opacity: 1.0;
            background-attachment: fixed;
            color: #d1d7dc;
        }
        .bd-placeholder-img {
            font-size: 1.125rem;
            text-anchor: middle;
            -webkit-user-select: none;
            -moz-user-select: none;
            user-select: none;
        }

        @media (min-width: 768px) {
            .bd-placeholder-img-lg {
                font-size: 3.5rem;
            }
        }
        body{

        }
        .w-100{
            width: 50%!important;
        }

        form {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
    </style>
</head>
<body class="text-center">
<form th:action="@{/register}"  method="post">
    <h1 class="h3 mb-3 fw-normal">请注册</h1>
    <div class="mb-3">
        <label for="exampleInputEmail1" class="form-label">邮箱</label>
        <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" name="email" required>
    </div>
    <div class="mb-3">
        <label for="exampleInputPassword1" class="form-label">用户名</label>
        <input type="text" class="form-control" id="exampleInputUserName" name="username" required>
    </div>
    <div class="mb-3">
        <label for="exampleInputPassword1" class="form-label">密码</label>
        <input type="password" class="form-control" id="exampleInputPassword1" name="password" required>
    </div>
    <button type="submit" class="btn btn-primary">注册</button>
    <p th:text="${msg}"></p>
</form>


<p class="mt-5 mb-3 text-muted">©Vienna</p>
</body>
</html>